﻿<%@ Page Title="Home Page" Language="C#"  AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeBehind="Default.aspx.cs" Inherits="MagazineWebForms._Default" %>

    

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">

        <div class="site-container">
      <div id="StudentTableContainer"></div>
    </div>

    
    <script type="text/javascript">

        (function () {

            $.ajax({
                type: "POST",
                dataType: "json",
                contentType: "application/json; charset=utf-8",
                url: "Default.aspx/Authors",
                data: "{}",
                success: function (data) {

                    $.each(JSON.parse(data.d), function (index, val) {
                        console.log(val.Name);

                    });
                },
                error: function () {
                    alert("error occurred");
                }
            });

        })();




    </script>

    </asp:Content>



  

